#include "widget.h"
#include "ui_widget.h"
#include <QIcon>
#include <QPixmap>
#include <QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPixmap pixmap(":/dog.jpg");

    //this->setCurso(Widget::wait)
    QCursor cursor(pixmap);
    pixmap.scaled(0,0);
    this->setCursor(cursor);

    //qDebug()<<cursor;
    //QPixmap pic(icon);
    //this->setCursor(pic);
}

Widget::~Widget()
{
    delete ui;
}

